<template>
    <div class="headbar">
        <div class="logo">
            <img src="" alt="">
            <h1>数字资源超市平台</h1>
        </div>
        <ul class="nav-links">
            <li><a href="#">首页</a></li>
            <li><a href="#">模型提供方</a></li>
            <li><a href="#">算力提供方</a></li>
            <li><a href="#">用户使用方</a></li>
            <li><a href="#">账户设置</a></li>
            <li><a href="#">退出登录</a></li>
        </ul>
    </div>
</template>


<script>

</script>


<style scoped>
.headbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    width: 100%;
    height: 50px;
    position: fixed;
    /* 固定定位 */
    top: 0;
    /* 距离顶部0 */
    left: 0;
    /* 距离左侧0 */
    z-index: 1000;
    /* 确保在最上层 */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    width: 70%;
    right: 0;
    padding: 0;
    /* 去除默认的padding */
    margin: 0;
    /* 去除默认的margin */
}

.nav-links li {
    flex: 1;
    /* 每个li元素占据相等的空间 */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.nav-links a:hover {
    text-decoration: underline;
}


</style>